<%@page contentType="text/html;charset=UTF-8" isErrorPage="true" %>
<% response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); %>
<%@page import="org.apache.commons.logging.Log"%>
<%@page import="org.apache.commons.logging.LogFactory"%>
<%@ include file="/views/common/taglibs.jsp" %>

<%
	Throwable ex = null;
	if (exception != null){
		ex = exception;
	}
	if (request.getAttribute("javax.servlet.error.exception") != null){
		ex = (Throwable) request.getAttribute("javax.servlet.error.exception");
	}
	//记录日志
	//Log logger = LogFactory.getLog("500.jsp");
	//logger.error("500.jsp中的log记录的日志:"+ex.getMessage(), ex);
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>系统内部错误</title>
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<link rel="stylesheet"	href="${ctx}/css/error/style_error.css" />
	
</head>

<body>
	<!--错误界面开始-->
	<div class="error_main">
	    <div class="error">
	        <img class="error_img" src="${ctx}/image/error/error_500.png"/>
	        <p class="error_con">
	            <span class="error_span1">500</span>
	            <span class="error_span2">内部服务器错误</span>
	            <input class="error_btn" type="button" value="关闭" onclick="parent.closeTab()" />
	        </p>
	    </div>
	</div>
	<!--错误界面结束-->
</body>
</html>
